package com.yang.designmode.singleton.business;

import java.io.IOException;

public class OrderController {
    private Logger1 logger1=new Logger1();
    private Logger4 logger4=Logger4.getInstance(); // 饿汉式单例模式

    public void createOrder(){
        try {
            logger1.log("创建订单的处理");
            logger4.log("创建订单的处理");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
